﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JiHuaTZD.aspx.cs" Inherits="Web.Pages.YongShui.BaoBiaoGL.DanJuDY.JiHuaTZD" Theme="Default"%>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>计划通知单</title>
    <script src="../../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <script src="../../../../PageJS/wap.js"></script>
    <link href="../../../../css/inputBgColor.css" rel="stylesheet"/>
    <style type="text/css">
        body, html {
            font-size: 12px;
            margin: 0;
            padding: 0;
        }

        #img table tr td div { cursor: pointer; }
        .FloatLeft { float: left; }


    </style>
    <script type="text/javascript">
        $(function() {
            var height = Math.max(0, document.documentElement.clientHeight) - 90;
            $("#condition").css("height", height);
        });

        function GVScrollToVisibleIndexOnClient(obj, index) {
            obj.SetVerticalScrollPosition(index * 25);
        }

        function print() {
            var startIndex = "";
            var endIndex = "";
            if (rbnBut2.GetChecked()) {
                startIndex = txtYHH1.GetText();
            }
            if (rbnBut3.GetChecked()) {
                startIndex = txtYHH2.GetText();
                endIndex = txtYHH3.GetText();
            }
            var params = new Array();
            params.push("V_YONGHUHKS:" + startIndex);
            params.push("V_YONGHUHJS:" + endIndex);
            wap.common.printjx('ZhangDanDY',
                [
                    { key: 'QUERYPARAM', value: params.join("|") },
                    { key: 'BAOBIAOID', value: "100293" },
                    { key: 'USERINFO', value: "csms" }
                ]);
        }
    </script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div class="tabletitle1" align="center">
    计划通知单
</div>
<asp:UpdatePanel ID="updatePanel1" runat="server">
<ContentTemplate>
<div>

<div>
<fieldset style="border: 1px solid #d0e4fe">

<div>
    <div style="border: 1px solid #d0e4fe; float: left; width: 27%;" id="condition">
        <table style="height: 270px; width: 100%;">
            <tr>
                <td style="text-align: right; width: 40%;">
                    <span style="font-size: 12px;">区块名称：</span>
                </td>
                <td>
                    <asp:Panel runat="server" ID="Panel2">
                        <dx:ASPxComboBox runat="server" ID="cmbGuanLiK" Width="100%">
                        </dx:ASPxComboBox>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td style="text-align: right; width: 30%;">
                    <span style="font-size: 12px;">年：</span>
                </td>
                <td>
                    <dx:ASPxTextBox runat="server" ID="txtShuiLiangYM" Width="100%" ClientInstanceName="txtShuiLiangYM">
                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"/>
                    </dx:ASPxTextBox>

                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <hr/>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: left;">
                    <dx:ASPxRadioButton runat="server" ID="ASPxRadioButton1" Text="全部" Checked="True" GroupName="2"></dx:ASPxRadioButton>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <dx:ASPxRadioButton runat="server" ID="RadioButton1" Text="下一水量月新用户" GroupName="2"></dx:ASPxRadioButton>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <table>
                        <tr>
                            <td style="width: 70%">
                                <dx:ASPxRadioButton runat="server" ID="RadioButton2" Text="试考核月大于等" GroupName="2"></dx:ASPxRadioButton>
                            </td>
                            <td style="width: 30%">
                                <dx:ASPxTextBox runat="server" ID="txtskhy" Width="50" ClientInstanceName="txtskhy">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <dx:ASPxRadioButton runat="server" ID="RadioButton3" Text="有计划调整来函" GroupName="2"></dx:ASPxRadioButton>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <dx:ASPxRadioButton runat="server" ID="rbSelYongHuH" Text="用户号" GroupName="2" CssClass="FloatLeft" ClientInstanceName="rbSelYongHuH"></dx:ASPxRadioButton>
                    <dx:ASPxTextBox ID="txtSelYongHuH" runat="server" Width="100px" ClientInstanceName="txtSelYongHuH" CssClass="FloatLeft"></dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <hr/>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: left;">
                    <dx:ASPxRadioButton runat="server" ID="rbnBut1" Text="全部" GroupName="1" ClientInstanceName="rbnBut1" Checked="True"></dx:ASPxRadioButton>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: left;">
                    <table>
                        <tr>
                            <td style="width: 20px;">
                                <dx:ASPxRadioButton runat="server" ID="rbnBut2" Text="从" GroupName="1" ClientInstanceName="rbnBut2"></dx:ASPxRadioButton>
                            </td>
                            <td style="width: 40%">
                                <dx:ASPxTextBox runat="server" ID="txtYHH1" Width="90" ClientInstanceName="txtYHH1">
                                </dx:ASPxTextBox>
                            </td>
                            <td>
                                到最后
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: left;">
                    <table>
                        <tr>
                            <td>
                                <dx:ASPxRadioButton runat="server" ID="rbnBut3" Text="从" GroupName="1" ClientInstanceName="rbnBut3"></dx:ASPxRadioButton>
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtYHH2" Width="90" ClientInstanceName="txtYHH2">
                                </dx:ASPxTextBox>
                            </td>
                            <td>
                                到
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtYHH3" Width="90" ClientInstanceName="txtYHH3">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <hr/>
                </td>
            </tr>
            <tr>
                <td>
                    <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel>
                    <dx:ASPxButton runat="server" ID="btnChaXun" Text="查询" OnClick="btnChaXun_Click">
                        <ClientSideEvents Click="function(s,e){LoadPanel.Show();}"/>
                    </dx:ASPxButton>
                </td>
                <td>
                    <dx:ASPxButton ID="btnExport2" runat="server" Text="导出EXCEL">
                        <ClientSideEvents Click="function(s,e){btnExport.OnClick();}"/>
                    </dx:ASPxButton>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <dx:ASPxButton ID="btnPrint" runat="server" Text="打印">
                        <ClientSideEvents Click="function(s,e){print();}"/>
                    </dx:ASPxButton>
                </td>
            </tr>

        </table>
    </div>
</div>
<div style="border: 1px solid #d0e4fe; float: right; width: 72%;">
    <div>
        <table>
            <tr>
                <td>
                    <span style="font-size: 12px;">用户号：</span>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtYongHuH" Width="100%" runat="server">
                    </dx:ASPxTextBox>
                </td>
                <td style="padding-left: 5px;">
                    <dx:ASPxButton ID="btnDingWei" runat="server" Text="定位" OnClick="btnDingWei_Click" UseSubmitBehavior="false">
                    </dx:ASPxButton>
                </td>
                <td style="width: 20px;">&nbsp;</td>
                <td>
                    <dx:ASPxLabel ID="zjl" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <dx:ASPxGridView ID="gvYongHuXX" ClientInstanceName="gvYongHuXX" runat="server" AutoGenerateColumns="False" KeyFieldName="S_YONGHUH"
                         ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true">
            <Columns>
                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="80">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="200">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="I_M1" Caption="1月" Width="70">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="I_M2" Caption="2月" Width="70">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="I_M3" Caption="3月" Width="70">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="I_M4" Caption="4月" Width="70">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="I_M5" Caption="5月" Width="70">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="I_M6" Caption="6月" Width="70">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="I_M7" Caption="7月" Width="70">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="I_M8" Caption="8月" Width="70">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="I_M9" Caption="9月" Width="70">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="I_M10" Caption="10月" Width="70">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="I_M11" Caption="11月" Width="70">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="I_M12" Caption="12月" Width="70">
                </dx:GridViewDataTextColumn>
            </Columns>
            <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto"/>
            <SettingsPager Mode="EndlessPaging" PageSize="100"/>
            <Settings ShowFooter="True"/>
            <SettingsBehavior AllowFocusedRow="True"/>
            <SettingsBehavior ProcessFocusedRowChangedOnServer="False"/>
            <ClientSideEvents Init="function(s,e){AdjustSize(250,gvYongHuXX);}"/>
        </dx:ASPxGridView>
    </div>
    <br/>
    <hr/>

</div>
</fieldset>
</div>
</div>
</ContentTemplate>

</asp:UpdatePanel>
<div style="display: none;">
    <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
    <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false">
    </dx:ASPxButton>
</div>
</form>
</body>
</html>